package ar.org.cfired.expedientes;

import java.util.Date;

import org.jbpm.api.Configuration;
import org.jbpm.api.NewDeployment;

public class DeployExpedientes {
	public static void main(String[] args) {
		NewDeployment deployment = new Configuration().buildProcessEngine().getRepositoryService().createDeployment();
		deployment.addResourceFromClasspath("ar/org/cfired/expedientes/ConsultaExpediente.jpdl.xml");
		deployment.addResourceFromClasspath("ar/org/cfired/expedientes/ConsultaExpediente.png");
		deployment.setName("Expedientes Octubre - 2011-10-11 - v1.0.3 beta rel 2");
		deployment.setTimestamp(new Date().getTime());
		deployment.deploy(); 
		
		System.out.println("Listo!"); 
	}
}
